export const LoadEnum = {
  load: "load",
  bottom: "bottom",
};

export const _getKeyVal = (res, list = []) => {
  if (!list || list.length === 0) return null;
  let array = [...list];
  let key = "";
  if (array.length > 1) {
    key = array.shift();
    return _getKeyVal(res[key], array);
  }
  return res[array[0]];
};
